package org.dev.vlp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dev.vlp.entity.Moment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.dev.vlp.vo.MomentVo;

import java.util.List;

/**
* @author 86184
* @description 针对表【vlp_moment(动态表)】的数据库操作Mapper
* @createDate 2023-01-10 13:11:59
* @Entity org.dev.vlp.entity.Moment
*/
@Mapper
public interface MomentMapper extends BaseMapper<Moment> {

    List<MomentVo> getTopicMoment(int topicId,int pageSize,int page);

    MomentVo getMomentDetail(int momentId);

    int updateCommentCount(@Param("id") Long id, @Param("count") int count);

    int updateLikeCount(@Param("id") Long id, @Param("count") int count);

    int getTopicMomentCount(int topicId);
}




